﻿using BCCommon;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.Agent.AgentCurrentlyProtocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCService.TMS.Agent.AgentCurrentlyProtocol
{
    /// <summary>
    /// 代理商信息
    /// </summary>
    public interface IAgentCurrentlyProtocolService
    {
        /// <summary>
        /// 添加代理商现行协议
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="agentRecordId">代理商记录Id</param>
        /// <param name="requestDto">代理商现行协议信息</param>
        /// <returns></returns>
        AgentCurrentlyProtocolDto Add(AdminDto admin, long agentRecordId, AgentCurrentlyProtocolRequestDto requestDto);

        /// <summary>
        /// 修改代理商现行协议
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="agentCurrentlyProtocolId">代理商现行协议Id</param>
        /// <param name="requestDto">代理商现行协议信息</param>
        /// <returns></returns>
        AgentCurrentlyProtocolDto Update(AdminDto admin, long agentCurrentlyProtocolId, AgentCurrentlyProtocolRequestDto requestDto);

        /// <summary>
        /// 删除代理商现行协议
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="agentCurrentlyProtocolId">代理商现行协议Id</param>
        void Delete(AdminDto admin, long agentCurrentlyProtocolId);

        /// <summary>
        /// 获取代理商现行协议
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="signStartDate">签署开始日期</param>
        /// <param name="signEndDate">签署结束日期</param>
        /// <param name="pageIndex">页号</param>
        /// <param name="pageSize">每页数据条数</param>
        /// <returns></returns>
        PageableList<AgentCurrentlyProtocolDto> Query(AdminDto admin, DateTime? signStartDate, DateTime? signEndDate, int pageIndex, int pageSize);

        /// <summary>
        /// 获取单个代理商现行协议
        /// </summary>
        /// <param name="agentRecordId">代理商记录Id</param>
        /// <returns></returns>
        AgentCurrentlyProtocolDto QuerySingle(long agentRecordId);
    }
}
